home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir38 / vga_doc2.zip / CIRRUS.TXT < prev    next >
Text File  |  1993-01-22  |  7KB  |  282 lines

  1.   Cirrus Logic  CL-GD 500/600
  2.  
  3.     CL-GD 510/520
  4.     CL-GD 610/620
  5.  
  6.     CL-GD 5422        Upto 1MB, 1024x768x256.     Very different from 5/6xx series
  7.               This is sometimes called AVGA3 any relation to AcuMos ??
  8.    
  9.  
  10.  
  11.  
  12.   3C4h index  6  (W):
  13.   bit 0-7  Writing ("Eagle ID" rol 4) will disable extensions.
  14.        "Eagle ID" will enable.
  15.        Reading will return 0 if last write was to disable,
  16.        1 if it was to enable
  17.  
  18.   3C4h index 80h (R/W): Miscellaneous Control 1
  19.  
  20.   3C4h index 81h (R/W): Graphics Position 1
  21.  
  22.   3C4h index 82h (R/W): Graphics Position 2
  23.  
  24.   3C4h index 83h (R/W): Attribute Controller Index
  25.  
  26.   3C4h index 84h (R/W): Write Control
  27.  
  28.   3C4h index 85h (R/W): Timing Control
  29.  
  30.   3C4h index 86h (R/W): Bandwidth Control
  31.  
  32.   3C4h index 87h (R/W): Miscellaneous Control 2
  33.  
  34.   3C4h index 88h (R/W): Horizontal Sync skew
  35.  
  36.   3C4h index 89h (R/W): CGA, HGC Font Control
  37.  
  38.   3C4h index 8Ah (R/W): Reserved
  39.  
  40.   3C4h index 8Bh (R/W): Screen B preset row scan
  41.  
  42.   3C4h index 8Ch (R/W): Screen B start address high
  43.  
  44.   3C4h index 8Dh (R/W): Screen B start address low
  45.  
  46.   3C4h index 8Eh (R): Version Code
  47.  
  48.   3C4h index 8Fh (R): Version Code
  49.  
  50.   3C4h index 90h (R/W): Vertical Retrace Start
  51.  
  52.   3C4h index 91h (R/W): Vertical Retrace End
  53.  
  54.   3C4h index 92h (R/W): Lightpen High
  55.  
  56.   3C4h index 93h (R/W): Lightpen Low
  57.  
  58.   3C4h index 94h (R/W): Pointer Pattern Address High
  59.  
  60.   3C4h index 95h (R/W): Cursor Height Adjust
  61.  
  62.   3C4h index 96h (R/W): Caret Width
  63.  
  64.   3C4h index 97h (R/W): Caret Height
  65.  
  66.   3C4h index 98h (R/W): Caret Horizontal Position High
  67.  
  68.   3C4h index 99h (R/W): Caret Horizontal Position Low
  69.  
  70.   3C4h index 9Ah (R/W): Caret Vertical Position High
  71.  
  72.   3C4h index 9Bh (R/W): Caret Vertical Position Low
  73.  
  74.   3C4h index 9Ch (R/W): Pointer Horizontal Position High
  75.  
  76.   3C4h index 9Dh (R/W): Pointer Horizontal Position Low
  77.  
  78.   3C4h index 9Eh (R/W): Pointer Vertical Position High
  79.  
  80.   3C4h index 9Fh (R/W): Pointer Vertical Position Low
  81.  
  82.   3C4h index A0h (R/W): Graphics Controller Memory Latch 0
  83.  
  84.   3C4h index A1h (R/W): Graphics Controller Memory Latch 1
  85.  
  86.   3C4h index A2h (R/W): Graphics Controller Memory Latch 2
  87.  
  88.   3C4h index A3h (R/W): Graphics Controller Memory Latch 3
  89.  
  90.   3C4h index A4h (R/W): Clock Select
  91.  
  92.   3C4h index A5h (R/W): Cursor (Caret and pointer) Attribute
  93.  
  94.   3C4h index A6h (R/W): Internal Switch Source
  95.  
  96.   3C4h index A7h (R/W): Status Switch Control
  97.  
  98.   3C4h index A8h (R/W): NMI Mask 1
  99.  
  100.   3C4h index A9h (R/W): NMI Mask 2
  101.  
  102.   3C4h index AAh (R/W): Reserved
  103.  
  104.   3C4h index ABh (R):   NMI Status 1
  105.  
  106.   3C4h index ACh (R):   NMI Status 2
  107.  
  108.   3C4h index ADh (R/W): 256 Color mode Page Control
  109.  
  110.   3C4h index AEh (R):   NMI data cache (Four 24 bit words
  111.  
  112.   3C4h index AFh (R/W): Active Adapter State
  113.  
  114.   3C4h index B0h..BFh (R/W): Scratch Registers
  115.  
  116.   3C4h index C0h..FFh (R/W): Reserved
  117.  
  118.   3d4h index  Ch (R/W): Screen A start address Hi
  119.   Must be cleared before the Eagle ID Register (3d4h index 1Fh) can be read.
  120.  
  121.   3d4h index 1Fh (R):  Eagle ID register
  122.   bit 0-7  Eagle ID.  Used for test of 3C4h index 6.
  123.        ECh for CL-GD 510/520, CAh for 610/620. EAh for Video7 boards.
  124.  
  125.  
  126.  
  127. GD5422 series:
  128.   
  129.   3C4h index  6  (R/W)
  130.   bit 0-7  Writing 12h to this register seems to enable extensions.
  131.        Unlike earlier Cirrus Chips the value can be read from the register.
  132.  
  133.   3C4h index  7  (R/W): 
  134.   bit 0-2  Memory mode. 1=256 colors, 3=15/16 bit RGB, 5=24bit RGB
  135.  
  136.   3C4h index  8  (R/W):
  137.  
  138.   3C4h index  9  (R/W):
  139.   bit 2-4  Monitor type. 0=Std VGA
  140.  
  141.   3C4h index 0Ah (R/W):
  142.  
  143.   3C4h index 0Bh (R/W):
  144.  
  145.   3C4h index 0Ch (R/W):
  146.  
  147.   3C4h index 0Dh (R/W):
  148.  
  149.   3C4h index 0Eh (R/W):
  150.  
  151.   3C4h index 0Fh (R/W):
  152.   bit 3-4  Video memory. 0=256K, 1=512K, 2=1MB.
  153.     5  Set if 256 or more colors ?
  154.  
  155.   3C4h index 10h (R/W):
  156.  
  157.   3C4h index 11h (R/W):
  158.  
  159.   3C4h index 12h (R/W):
  160.  
  161.   3C4h index 13h (R/W):
  162.  
  163.   3C4h index 18h (R/W):
  164.  
  165.   3C4h index 19h (R/W):
  166.  
  167.   3C4h index 1Ah (R/W):
  168.  
  169.   3C4h index 1Bh (R/W):
  170.  
  171.   3C4h index 1Ch (R/W):
  172.  
  173.   3C4h index 1Dh (R/W):
  174.  
  175.   3C4h index 1Eh (R/W):
  176.  
  177.   3CEh index 09h (R/W):
  178.   bit 0-7  4K Primary bank number.
  179.  
  180.   3CEh index 0Ah (R/W):
  181.   bit 0-7  4K bank number  (How do you enable this second bank register,
  182.                 and how does it work ?).
  183.  
  184.   3CEh index 0Bh (R/W):
  185.  
  186.   3CEh index 10h (R/W):
  187.  
  188.   3CEh index 11h (R/W):
  189.  
  190.   3CEh index 12h (R/W):
  191.  
  192.   3d4h index 19h (R/W):
  193.  
  194.   3d4h index 1Ah (R/W):
  195.   bit   0  Set if an interlaced mode.
  196.  
  197.   3d4h index 1Bh (R/W):
  198.   bit   0  Display Start Address bit 16. Bit 0-15 are in 3d4h index Ch-Dh.
  199.     2  Display Start Address bit 17
  200.     4  Bit 8 of the CRTC Offset register (3d4h index 13h) ?.
  201.  
  202.   3d4h index 27h (R):  Chip ID
  203.   bit 0-7  8Ah (type2), 8Ch-8Fh (type3), 90h-93h (type5) or 94h-97h (type4).
  204.  
  205.   Memory locations:
  206.  
  207.   $C000:$6  2 bytes  'CL'  if Cirrus Bios
  208.  
  209.  
  210.  
  211.   ID Cirrus VGA:
  212.  
  213.   old:=rdinx(base,12);
  214.   outp(base+1,0);
  215.   eagle:=rdinx(base,$1f);
  216.   wrinx($3c4,6,(eagle shl 4)+(eagle shr 4));
  217.   if inp($3c5)=0 then
  218.   begin
  219.     outp($3c5,eagle);
  220.     if inp($3c5)=1 then
  221.       case eagle of
  222.     $EC:Cirrus 510/520;
  223.     $CA:Cirrus 610/620;
  224.     $EA:Cirrus Video7 OEM;
  225.       end;
  226.   end;
  227.   wrinx(base,12,old);
  228.  
  229.  
  230.   Video Modes:
  231.  
  232.   15h T  132   25   2 (8x14)
  233.   16h T  132   44   2 (8x8)
  234.   18h T  132   30   2 (8x)
  235.   1Eh T  132   25  16 (8x8)
  236.   1Fh T  132   25  16 (8x14)
  237.   20h T  132   44  16 (8x8)
  238.   22h T  132   30  16 (8x)
  239.   31h T  100   37   2
  240.   40h G  720  540  16 planar
  241.   50h G  640  400 256 packed
  242.   51h G  512  480 256 packed    Note: not supported in all Bios'es
  243.   63h G  720  540  16 planar
  244.   64h G  800  600  16 planar
  245.   6Ah G  800  600  16 planar
  246.  
  247.  
  248.   Modes for the GD 5320:
  249.  
  250.   61h G  640  400  16 planar
  251.   62h G  640  450  16 planar
  252.   70h G  360  480 256 packed
  253.   71h G  528  400 256 packed
  254.   72h G  528  480 256 packed
  255.   74h G  320  240 256 packed
  256.   75h G  640  400 256 packed 
  257.  
  258.   Mode 50h and 51h use a special system where four pixels are stored at the
  259.   same byte address in plane 0,1,2 and 3 respectively.
  260.  
  261.  
  262.   Modes for the GD 5422:
  263.  
  264.   14h T  132   25  16 (8x16)
  265.   54h T  132   43  16 (8x8)
  266.   55h T  132   25  16 (8x14)
  267.   58h G  800  600  16 planar
  268.   5Ch G  800  600 256 packed
  269.   5Dh G 1024  768  16 planar
  270.   5Fh G  640  480 256 packed
  271.   60h G 1024  768 256 packed
  272.   64h G  640  480 64K Sierra 16bit
  273.   65h G  800  600 64K Sierra 16bit
  274.   66h G  640  480 32K Sierra 15bit
  275.   67h G  800  600 32K Sierra 15bit
  276.   6Ah G  800  600  16 planar
  277.   6Ch G 1280 1024  16 planar
  278.   6Fh G  320  200 64K Sierra 16bit
  279.   70h G  320  200 16M RGB
  280.   71h G  640  480 16M RG
  281.  
  282.